import {Navigate} from "react-router-dom";
import Home from "../home/home";
import Users from "../Users/Users";
import Questions from "../Questions/Questions";
import Single from "../Single/Single";
const routes=[
    {
        path: "/",
        element: <Navigate to="/home" />
    },
    {
        path:"/home",
        element: <Home />
    },
    {
        path:"/users",
        element:<Users/>
    },
    {
        path: "/questions",
        element: <Questions/>
    },
    {
        path: "/questions/single",
        element: <Single/>
    }
]
export default routes